package com.zenghus.v2;

import com.zenghus.mybatis.beans.Test;
import com.zenghus.v2.config.Configuration;
import com.zenghus.v2.executor.SimplExecutor;
import com.zenghus.v2.mapper.TestMapper;
import com.zenghus.v2.sqlsession.SqlSession;

public class BootStrap {
    public static void main(String[] args) {
        SqlSession sqlSession=new SqlSession(new Configuration("com.zenghus.v2.mapper"),new SimplExecutor());
        TestMapper t=sqlSession.getMapper(TestMapper.class);
        Test test=t.selectByid(1);
        System.out.println(test);
    }
}
